#pragma once

#include "gameobject.h"
#include "Events\IListener.h"

enum ControlScheme { WASD_JKL, WASD_ZXC, ARROW_KEYS_JKL, ARROW_KEYS_ZXC, ARCADE, XBOX };

class Hologram : public GameObject, public IListener
{
private:

	static ControlScheme scheme;

	vector<int> images;

	GameObject* player;

	bool inRangeOfPlayer;
	bool showOnKill;
	bool playerKilled;
	float distanceToPlayer;
	float range;
	float alpha;

public:

	// Constructor
	Hologram(float range = 150.0f);

	void Update(float deltaTime)	override;
	void Render(void) const			override;
	void HandleEvent(Event* pEvent)	override;

	static void SetControlScheme(ControlScheme scheme);

	void SetShowOnKill(bool show) { showOnKill = show; }

	void AddImage(int id);

};

